import styleImport, { VantResolve } from 'vite-plugin-style-import';

export default function createStyleImport() {
    return styleImport({
        resolves: [VantResolve()],
        libs: [{
            libraryName: 'vant',
            esModule: true,
            resolveStyle: name => `../es/${name}/style`
        }]
    })
}